//
//  TCSGDownloaderPlugins.m
//  StoryGrabber
//
//  Created by Thomas on 8/19/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "TCSGDownloaderPlugins.h"


@implementation TCSGDownloaderPlugins
+ (BOOL)plugInClassIsValid:(Class)plugInClass
{
	NSLog(@"pass0");
    if([plugInClass conformsToProtocol:@protocol(TCSGStoryDownloaderBase)])
    {
		NSLog(@"pass1");
		if([plugInClass instancesRespondToSelector:@selector(getStory:)] &&
		   [plugInClass instancesRespondToSelector:@selector(getStoriesArrayForAuthor:)] &&
		   [plugInClass instancesRespondToSelector:@selector(version)])
		{
			return YES;
		}
		return NO;
	}
	return NO;
}
@end
